﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Tesseract.DataAccessBase.Attributes
{
    /// <summary>
    /// Entity properties to be ignored from Insert or Update operations.
    /// </summary>
    [AttributeUsage(AttributeTargets.Method)]
    public class IgnoreEntityProperties : Attribute
    {
        public List<string> IgnoreNames
        {
            get;
            set;
        }

        public IgnoreEntityProperties(params string[] propertyNames)
        {
            IgnoreNames = propertyNames.ToList();
        }
    }
}
